package com.gsk.test123.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Configuration//关联配置文件
@ConfigurationProperties(prefix = "my")//值的前缀
@PropertySource(value = "classpath:my-spring.properties")//给属性注入值
public class MyConfig {

}

